import { getSwipedatas, getCollectlists, getDetaillists } from "@/api/index.js";
let actions = {
    async actSwipedatas(context, params) {
        let result = await getSwipedatas(params);
        // console.log(result.data.bannerLists);
        context.commit("changeSwipedatas", result.data.bannerLists)
    },
    async actCollectlists(context, params) {
        let result = await getCollectlists(params);
        // console.log(result.data.charts);
        context.commit("changeCollectlists", result.data.charts)
    },
    async actDetaillists(context, id) {
        let result = await getDetaillists(id);
        // console.log(result.data[0]);
        context.commit("changeDetaillists", result.data[0])
    }
};

export default actions;